package com.maotouying.owlextremeapp.view;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewpager.widget.ViewPager;

/**
 * @author mingtai
 * @description
 * @time 2020/8/9 15:04
 */

public class FixedViewPager extends ViewPager {

    public FixedViewPager(@NonNull Context context) {
        super(context);
    }

    public FixedViewPager(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    // 去掉滑动效果 false
    @Override
    public void setCurrentItem(int item) {
        super.setCurrentItem(item, false);
    }
}
